package com.video.user.domain.dto;


import lombok.Data;

@Data
public class UpdateVideoCountDto {

    private Long videoId;

    private Integer type;

    private Boolean increase;

    public String createTypeStr() {
        switch (type) {
            case 1:
                return "likes = likes" + (increase ? "+" : "-") + "1";
            case 2:
                return "reply_size = reply_size" + (increase ? "+" : "-") + "1";
            case 3:
                return "collect = collect" + (increase ? "+" : "-") + "1";
            default:
                return null;
        }
    }
}
